package com.tony.intergration.impl;

import com.tony.intergration.AccountQueryServiceClient;
import com.tony.personalcore.dao.dataobject.AccountDO;
import com.tony.personalcore.facade.AccountQueryServiceFacade;

public class AccountQueryServiceClientImpl implements AccountQueryServiceClient {

    private AccountQueryServiceFacade accountQueryServiceFacade;

    @Override
    public AccountDO queryByEmail(String email) {
        return accountQueryServiceFacade.queryByEmail(email);
    }

    public void setAccountQueryServiceFacade(AccountQueryServiceFacade accountQueryServiceFacade) {
        this.accountQueryServiceFacade = accountQueryServiceFacade;
    }

    @Override
    public void insert(AccountDO accountDO) {
        accountQueryServiceFacade.insert(accountDO);
    }

}
